package com.artist.service;

import com.artist.entity.TbDepartment;

import java.util.List;

public interface DepartmentService {

    /*所有角色列表*/
    List<TbDepartment> selectAll();

    /*根据部门id查询*/
    TbDepartment selectDepartmentById(Integer did);

    /*新增部门*/
    void saveDepartment(TbDepartment department);

    /*删除部门*/
    int deleteDepartment(Integer did);

    /*更新部门*/
    int updateByPrimaryKeySelective(TbDepartment record);
}
